package com.example.personblog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("tb_order")
public class Order {
    private int id;
    private  String ordertime;
    private double total;
    //代表当前订单属于哪个用户
    private User user;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", order_time='" + ordertime + '\'' +
                ", total=" + total +
                ", user=" + user +
                '}';
    }
}
